package com.sap.mall.ware.feign;

import com.sap.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("mall-product")
public interface ProductFeignService {


    /**
     *
     * 1）、/api/product/skuinfo/info/{skuId}
     *      @FeignClient("mall-gateway"): 给mall-gateway 所在的机器发请求
     *
     * 2）、/product/skuinfo/info/{skuId}
     *      给@FeignClient("mall-product")
     * @param skuId
     * @return
     */
    @RequestMapping("/product/skuinfo/info/{skuId}")
    R info(@PathVariable("skuId") Long skuId);

}
